﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

using System.IO;


namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void label1_Leave(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void btnRead_Click(object sender, EventArgs e)
        {

        }

        private void btnCreate_Click(object sender, EventArgs e)
        {
            CreateBigText(3, @"C:\g\b.txt");
        }

        private void btnReadAsyns_Click(object sender, EventArgs e)
        {

        }

        private string CreateBigText(int size,string h  ) 
        {
            string resut = "";
            StreamWriter fout = new StreamWriter(h);
            string strMB1 = "";
            for (int i = 0; i < 1024 ; i++)
            {
                strMB1 += "a";
              
            }
            for (int i = 0; i <= size*1024;i++ )
            {
               h += strMB1;
               
            }
            return resut;

        }

        private void saveFileDialog1_FileOk(object sender, CancelEventArgs e)
        {

        }
        
    }
}
